<html>
<head><meta charset="utf-8"><title>mdbook-mermaid · wg-traits · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/index.html">wg-traits</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/mdbook-mermaid.html">mdbook-mermaid</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="194983307"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/mdbook-mermaid/near/194983307" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/mdbook-mermaid.html#194983307">(Apr 22 2020 at 19:56)</a>:</h4>
<p>Hey <span class="user-mention" data-user-id="120518">@Eric Huss</span> -- you maintain mdbook, right? I'm trying to get mdbook-mermaid to work in chalk on <a href="https://github.com/nikomatsakis/chalk-ndm/commit/a3a677e5292b6a7d1bcfdab6f274a493924cc9e7" title="https://github.com/nikomatsakis/chalk-ndm/commit/a3a677e5292b6a7d1bcfdab6f274a493924cc9e7">my mermaid branch</a> but it doesn't seem to trigger, I just get the "mermaid code block" being tretaed like any other code block</p>



<a name="194983326"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/mdbook-mermaid/near/194983326" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/mdbook-mermaid.html#194983326">(Apr 22 2020 at 19:56)</a>:</h4>
<p>Any thoughts on what I might be doing wrong?</p>



<a name="194996990"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/mdbook-mermaid/near/194996990" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/mdbook-mermaid.html#194996990">(Apr 22 2020 at 22:05)</a>:</h4>
<p>I'm not sure how you downloaded it, but it looks like <code>mermaid.min.js</code> got corrupt (<a href="https://github.com/nikomatsakis/chalk-ndm/commit/a3a677e5292b6a7d1bcfdab6f274a493924cc9e7#diff-1a0010c84b4de91008d1a7fe01561079" title="https://github.com/nikomatsakis/chalk-ndm/commit/a3a677e5292b6a7d1bcfdab6f274a493924cc9e7#diff-1a0010c84b4de91008d1a7fe01561079">https://github.com/nikomatsakis/chalk-ndm/commit/a3a677e5292b6a7d1bcfdab6f274a493924cc9e7#diff-1a0010c84b4de91008d1a7fe01561079</a>)  That looks like an HTML file, when it should be javascript.  I had this error in Firefox: <code>SyntaxError: expected expression, got '&lt;'</code></p>



<a name="195001670"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/mdbook-mermaid/near/195001670" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/mdbook-mermaid.html#195001670">(Apr 22 2020 at 23:01)</a>:</h4>
<p>hmm</p>



<a name="195001682"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/mdbook-mermaid/near/195001682" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/mdbook-mermaid.html#195001682">(Apr 22 2020 at 23:01)</a>:</h4>
<p>I thought I curl'd from raw urls</p>



<a name="195001686"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/mdbook-mermaid/near/195001686" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/mdbook-mermaid.html#195001686">(Apr 22 2020 at 23:01)</a>:</h4>
<p>but I guess not :)</p>



<a name="195001693"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/mdbook-mermaid/near/195001693" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/mdbook-mermaid.html#195001693">(Apr 22 2020 at 23:01)</a>:</h4>
<p>that's...kind of embarassing</p>



<a name="195001695"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/mdbook-mermaid/near/195001695" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/mdbook-mermaid.html#195001695">(Apr 22 2020 at 23:01)</a>:</h4>
<p>thanks :)</p>



<a name="195001875"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/mdbook-mermaid/near/195001875" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/mdbook-mermaid.html#195001875">(Apr 22 2020 at 23:03)</a>:</h4>
<p>it works! huzzah!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>